﻿@model IEnumerable<ConsoleApplication2.Models.rooms>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table id="rounded-corner" summary="2007 Major IT Companies' Profit">
    <tr>
        <th>
            اسم الغرفه
        </th>
        <th>
            ملاحظات
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.notes)
            </td>
            <td>
                @Html.ActionLink("تعديل", "Edit", new { id = item.id }) |
                @Html.ActionLink("التفاصيل", "Details", new { id = item.id }) |
                @Html.ActionLink("مسح", "Delete", new { id = item.id })
            </td>
        </tr>
    }

</table>
